import { axios } from "@/utils/request";

const api = {
  page: "dev/leave/page",
  delete: "dev/leave/delete/",
  create: "dev/leave/create"
};

// 请假管理-分页
export function queryPage(params) {
  return axios({
    url: api.page,
    method: "get",
    params
  });
}
// 请假管理-删除
export function deleteBatch(params) {
  return axios({
    url: api.delete + params,
    method: "delete"
  });
}
// 请假管理-新增
export function create(data) {
  return axios({
    url: api.create,
    method: "post",
    data
  });
}
